package com.lcb.thread;

/****
 * @Author:刘长柏
 * @Date: 2021-02-24 13:49
 * @Description:继承Thread 类方式
 *****/
public class ThreadTest001 {
    public static class MyThread extends Thread {
        @Override
        public void run() {
            System.out.println("I am a child thread!");
        }
    }

    public static void main(String[] args) {
        MyThread myThread = new MyThread();
        myThread.start();
    }
}
